/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tcloudclient.contex;

import tcloudclient.fileSystem.FileNode;
import tcloudclient.settings.ApplicationSettings;

/**
 *
 * @author Tomas
 */
public class Context {
    
    private ApplicationSettings settings;
    private FileNode rootFolder;
    
    private Context() {
    }
    
    public static Context getInstance() {
        return Contex2Holder.INSTANCE;
    }
    
    private static class Contex2Holder {

        private static final Context INSTANCE = new Context();
    }
    
    public ApplicationSettings getApplicationSettings(){
        return settings;
    }
    
    public void setApplicationSettings(ApplicationSettings settings){
        this.settings = settings;
    }

    public FileNode getRootFolder() {
        return rootFolder;
    }

    public void setRootFolder(FileNode rootFolder) {
        this.rootFolder = rootFolder;
    }
    
}
